﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AppFramework.DinosaursParkMes.ProductWork.Dto
{
    public class ProductionOrderFill
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 生产编号
        /// </summary>
        public string Productionnumber { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string Workordernumber { get; set; }

        /// <summary>
        /// 工单名称
        /// </summary>
        public string Workordername { get; set; }

        /// <summary>
        /// 关联计划
        /// </summary>
        public string Produceplanname { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string Finishedproductname { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string Finishedproductcore { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specsmodel { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        public string Finishedproducttype { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// BOM编号
        /// </summary>
        public string BoMNumber { get; set; }
        /// <summary>
        /// BOM版本
        /// </summary>
        public decimal Versions { get; set; }
        /// <summary>
        /// 物料清单
        /// </summary>
        public List<ProductBillOfMaterial> BillOfMaterials { get; set; }
        /// <summary>
        /// 工艺路线编号
        /// </summary>
        public string RoutingNumber { get; set; }
        /// <summary>
        /// 工艺路线名称
        /// </summary>
        public string RoutingName { get; set; }
        public List<ProcessInfo> ProcessInfos { get; set; }
    }
    public class ProductBillOfMaterial
    {
        /// <summary>
		/// 物料编号
		/// </summary>
		public string MaterialNumber { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string SpecificationsVersion { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 使用量
        /// </summary>
        public string UsageAmount { get; set; }

        /// <summary>
        /// 用料比例
        /// </summary>
        public string MaterialsRatio { get; set; }
    }
    /// <summary>
    /// 工序
    /// </summary>
    public class ProcessInfo
    {
        /// <summary>
        /// 工序编号
        /// </summary>
        public string ProcedureNumber { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string ProcessName { get; set; }

        /// <summary>
        /// 下步工序
        /// </summary>
        public string UnderProcess { get; set; }
    }
}
